package com.eedi.framework.protocol.controller.sys.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;


@Schema(description = "系统界面 - 协议配置历史版本新增/修改 Request VO")
@Data
public class SysProtocolHistorySaveReq {

    @Schema(description = "自增主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "17123")
    private Long id;

    @Schema(description = "协议配置历史版本id", requiredMode = Schema.RequiredMode.REQUIRED, example = "21886")
    @NotEmpty(message = "协议配置历史版本id不能为空")
    private String systemProtocolHistoryId;

    @Schema(description = "协议配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "9527")
    @NotEmpty(message = "协议配置ID不能为空")
    private String systemProtocolId;

    @Schema(description = "协议名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "协议名称不能为空")
    private String name;

    @Schema(description = "协议应用类型：1注册登录 2专家问诊 3便民问诊 4患者评价 见枚举详情", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "协议应用类型：1注册登录 2专家问诊 3便民问诊 4患者评价 见枚举详情不能为空")
    private Short protocolApplyType;

    @Schema(description = "协议内容")
    private String protocolContent;

    @Schema(description = "协议备注说明", example = "随便")
    private String description;

    @Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "显示顺序不能为空")
    private Integer sort;

    @Schema(description = "协议发布状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "协议发布状态不能为空")
    private Short publishStatus;

    @Schema(description = "租户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "28224")
    @NotEmpty(message = "租户编号不能为空")
    private String systemTenantId;

}
